﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace WebStore.Web.App.Controllers
{
    public partial class HomeController
    {
        public PartialViewResult Menu(string category=null)
        {
            ViewBag.SelectedCategory = category;
            return PartialView(_entities.Categories.OrderBy(x => x.Name).Select(x => x.Name));
        }
    }
}